package com.cq.hd.member.api;

import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.SmsDto;
import com.cq.hd.member.api.dto.SmsVerifyDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "hd-o2o-member-service", contextId = "sms-api")
public interface SmsApi {

    /**
     * 发送短信验证码
     */
    @PostMapping("/member/sms/send")
    Result<Object> sendSms(@RequestBody SmsDto smsDto);

    /**
     * 校验短信
     */
    @PostMapping("/member/sms/verify")
    Result<Object> verify(@RequestBody SmsVerifyDto smsVerifyDto);

}
